package com.horatio.ai.struts;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSONArray;

public class AiConfEntity
{
	List<String> await = new ArrayList<>();
	List<String> prepareFight = new ArrayList<>();
	List<String> fight = new ArrayList<>();
	List<String> breakFight = new ArrayList<>();
	
	//AI  名称
	private String name;
	//待机状态配置
	private String AWAIT;
	//战斗预备配置
	private String PREPARE_FIGHT;
	//战斗配置
	private String FIGHT;
	//脱离战斗配置
	private String BREAK_FIGHT;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAWAIT() {
		return AWAIT;
	}
	public void setAWAIT(String aWAIT) {
		AWAIT = aWAIT;
	}
	public String getPREPARE_FIGHT() {
		return PREPARE_FIGHT;
	}
	public void setPREPARE_FIGHT(String pREPARE_FIGHT) {
		PREPARE_FIGHT = pREPARE_FIGHT;
	}
	public String getFIGHT() {
		return FIGHT;
	}
	public void setFIGHT(String fIGHT) {
		FIGHT = fIGHT;
	}
	public String getBREAK_FIGHT() {
		return BREAK_FIGHT;
	}
	public void setBREAK_FIGHT(String bREAK_FIGHT) {
		BREAK_FIGHT = bREAK_FIGHT;
	}
	
	@SuppressWarnings("unchecked")
	public void analysis()
	{
		await = JSONArray.parseObject(getAWAIT(), ArrayList.class);
		prepareFight = JSONArray.parseObject(getPREPARE_FIGHT(), ArrayList.class);
		fight = JSONArray.parseObject(getFIGHT(), ArrayList.class);
		breakFight = JSONArray.parseObject(getBREAK_FIGHT(), ArrayList.class);
	}
}
